<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>


</head>
<body>
    <div id="app">
        <table>
            <tr>
                <th>学号</th>
                <th>姓名</th>
                <th>年龄</th>
            </tr>
            <tr v-for="item in stus" :key="item.id">
                <td>{{item.id}}</td>
                <td>{{item.name}}</td>
                <td>{{item.age}}</td>
            </tr>
        </table>
    </div>
    <script>
        new Vue({
            el:'#app',
            data:{
                stus:[{
                id:1001,
                name:'zhangsan1',
                age:12
            },{
                id:1001,
                name:'zhangsan2',
                age:15
            },{
                id:1001,
                name:'zhangsan3',
                age:18
            }]
        }
    })
    </script>
</body>
</html>